<%-- 
    Document   : ecGestionPatrocinador
    Created on : 01/11/2009, 10:56:55 PM
    Author     : Liz Alvarez
--%>
<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="true" import="java.util.List"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>.::Incubadora de Empresas::. Invierta con nosotros</title>
        
         <%@ page 
         
         import="pe.edu.unmsm.fisi.ceiecbt.ejb.beans.ComtbPatrocinadorFacade"
         import="pe.edu.unmsm.fisi.ceiecbt.ejb.beans.ComtbPatrocinadorFacadeRemote"
         import ="pe.edu.unmsm.fisi.ceiecbt.ejb.entidad.ComtbEmpresa"
         import ="pe.edu.unmsm.fisi.ceiecbt.ejb.entidad.ComtbIndicadores"

         import ="pe.edu.unmsm.fisi.ceiecbt.app.clases.Menu"
	 import="java.util.*" 
         import="javax.naming.*" 
         import="javax.rmi.PortableRemoteObject"
         import="javax.ejb.*"
         import= "javax.ejb.EJB"
         

%>
        
           <%@include file="jspf/links.jspf"%>
        
        <style type="text/css">
            #s5_mainbackmiddle {
                width:950px;}
            
            #s5_topback {
                width:926px;}
            
            #s5_bottomtop {
                width:926px;}
            
            #s5_bottommiddle {
                width:926px;}
            
            #s5_maininner {
                width:904px;}
            
            #s5_footer {
                width:950px;}
            
            #s5_topleftbottom {
                width:926px;}
            
            #s5_mainbody {
                width:632px;}
            
        </style>  
        
    </head>
    <body>
        <div id="s5_background"> 
            <div id="s5_topbackground"> 
                
                <div id="s5_topback"> 
                    <div id="s5_topleft">
                        <div class="s5_topblock">
                            <div id="s5_logo" style="cursor:pointer;">
                            </div>
                        </div>	
                        
                    </div>
                    
                    <div id="s5_topright">
                        <div class="s5_topblock">
                            <div id="s5_search">
                                <div style="position:relative;">
                                    <div class="moduletable">
                                        
                                        <form action="" method="get">
                                            <div class="search">
                                            <input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="Buscar..."  onblur="if(this.value=='') this.value='Buscar...';" onfocus="if(this.value=='Buscar...') this.value='';" />	</div>
                                            
                                            <input type="hidden" name="option" value="com_search" />
                                            <input type="hidden" name="Itemid" value="5" />	
                                    </form>		</div>
                                </div>
                            </div>
                        </div>	
                    </div>
                </div>
                
                <%@include file="jspf/menu_uhead.jspf"%>
                
<%


HttpSession sesion_act=request.getSession(true);

String usr=(String) sesion_act.getAttribute("user");

if(usr!=null){
        
if(usr.equals("liz")){

   // request.setAttribute(usr);
    
%>
<div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    Cerrar Sesión							</div>
    <div id="s5_s5boxright"></div>						
</div>

<%
}
else{
    
    %>
    
    <div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    Iniciar Sesión							</div>
    <div id="s5_s5boxright"></div>						
</div>
    
    <%
}

%>


<%

}
else{


%>
<div id="s5_s5boxtab" onclick="">
    <div id="s5_s5boxleft"></div>
    <div id="s5_s5boxmiddle">
    Iniciar Sesión							</div>
    <div id="s5_s5boxright"></div>						
</div>
<%
}
%>


            </div>
            
            <div class="clear:both;"></div>
            
            <div id="s5_topbackbottombar"></div>
            
        </div>
        
        
        <div id="s5_mainbodywrapper">		
            <div id="s5_mainbackmiddle">	
                <div id="s5_maininnerleft"></div>	
                <div id="s5_maininner">
                    
                    
                    <%@include file="jspf/menu_aright.jspf"%>
                    
                    <div style="margin-right:252px;">
                        
                        <div id="s5_maincolumn" style="width:650px;">
                            
                            
                            
                            <div id="s5_leftmainwrap">
                                <div id="s5_maincolumn_top">
                                    <div id="s5_maincolumn_top_left"></div>
                                    <div id="s5_maincolumn_top_right"></div>
                                </div>
                                <div id="s5_maincolumn_wrap">
                                    
                                    <div id="s5_positions">
                                        
                                        <div id="s5_user1_100">
                                            <div class="module">
                                                <div>
                                                    <div>
     
<form action="regNuevoPat.jsp"  method="post">
                           
                                                     <table bordercolor="#003366" border="0" style="margin:15px;">
                                                          <tbody>
                                                              
       
<%

   List <ComtbEmpresa> listpat=(List) request.getAttribute("ObjEmpresa");
//int cont=listpat.size();
   List <ComtbIndicadores> listind=(List) request.getAttribute("ObjIndicador");
  
                    %>
                        
                      <tr style="margin:5px;">
                         
                       <td valign="top" bgcolor="#ffffff" >
                           <% 
                       
                           String var1=listpat.get(0).getEmprevRazSocial().toString();
//String var1=listpat.get(0).getRubenvCodRubro().getRubenvDescripcion();
                                                     %>
                          <p style="margin:5px;">
                          
                              <strong><%=var1%></strong>
                              
                          </p>
                          
                        </td>
                        
                        <td width="110px;">
                            <strong>Descripcion</strong>
                           
                        </td>
                        
                         <td>
                              <strong>:</strong>
                         
                        </td>
              
                        <td width="180px;">
                          
                          <p style="margin:5px;" >
                               <%=listpat.get(0).getEmprevDescripcion().toString()%>
                          </p>
                          
                          </td>
          
                          
                      </tr>
                      
                      <tr>
                          <td>
                                 <p style="margin:5px;">
                                   <a href="#">
                                       <% //String var="e"+patIt.getComtbPatrocinadorPK().getPatorvCodPatrocinador()+".gif"; %>
                                       <img style="height:52px;width:160px;" border="0" src="imagenes/acklis.gif"/>
                                   </a><br/>
                                </p>
                           
                        
                              
                          </td>
                          
                          <td width="80px;">
                              
                              <strong>Monto</strong>
                              
                          </td>
                          
                          <td>
                            <p>
                              <strong>:</strong>
                                                         
                          </p>
                          </td>
                          
                          <td>        
                           <p style="margin:5px;">
                               <%="S/. "+listpat.get(0).getEmprerMonto()%>
                          </p>
                          </td>
                       
                      </tr>
             
             <tr>
                 <td>
                     
                     
                 </td>
                 <td>
                     <strong>Producto</strong>
                              
                 </td>
                 
                    <td>
                            <p>
                              <strong>:</strong>
                                                         
                          </p>
                          </td>
                          
                    
                            <td>
                               <p style="margin:5px;">
                               <%=listpat.get(0).getEmprevProducto().toString()%>
                          </p>
                          </td>
                 
                 
             </tr>
             
                  <tr>
                 <td>
                     
                     
                 </td>
                 <td>
                     <strong>Tipo de Empresa</strong>
                              
                 </td>
                 
                    <td>
                            <p>
                              <strong>:</strong>
                                                         
                          </p>
                          </td>
                          
                    
                            <td>
                               <p style="margin:5px;">
                               <%=listpat.get(0).getRubenvCodRubro().getRubenvDescripcion().toString()%>
                          </p>
                          </td>
                 
                 
             </tr>
             
                        <tr>
                 <td>
                     
                     
                 </td>
                 <td>
                     <strong>Estado de Empresa</strong>
                              
                 </td>
                 
                    <td>
                            <p>
                              <strong>:</strong>
                                                         
                          </p>
                          </td>
                          
                    
                            <td>
                                   <%
                               int var23=listpat.get(0).getEmpreiEstado();
                               String tipoemp;
                               if(var23==1){
                               tipoemp="Pre-Incubada";
                               }
                               else{
                               tipoemp="Incubada";
                               }
                               
                               %>
                               <p style="margin:5px;"><%=tipoemp%></p>
                          </td>
                 
                 
             </tr>
             <%
             if(listind!=null)
             {
                 if(listind.size()>0)
                 {
                     String valor=""+listind.get(0).getIndicvValor();
                 %>
                 
                 <tr>
                 
                       <td>
                     
                     
                 </td>
                 <td>
                     <strong><%=listind.get(0).getComtbTipoIndicador().getTipinvDescripcion()%></strong>
                              
                 </td>
                 
                    <td>
                            <p>
                              <strong>:</strong>
                                                         
                          </p>
                          </td>
                          
                    
                            <td>
                               <p style="margin:5px;">
                               <%=valor+"%"%>
                          </p>
                          </td>
                 
                 
             </tr>
                 
                 
                 
                 <%
                 }
             }
             %>
             
             
             
      
      
    </tbody>
    
    </table>
    
     <a href="login.jsp?idemp=<%=listpat.get(0).getEmprevCodEmpresa().toString()%>" style="margin-left:300px;">>> Ver mas detalle</a>
     <a href="Inicio" style="margin-left:300px;">>> Volver</a>   
    
</form> 
              </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    <div style="clear:both;"></div>
                                    <div id="s5_mainbody">
                                        
                                        <table width="100%" cellspacing="0" cellpadding="0">  
                                            <tr>
                                                <td class="componentheading" colspan="4"></td>
                                            </tr>
                                            
                                        </table>
                                        
                                    </div>
                                    
                                </div>
                                <div id="s5_maincolumn_bottom">
                                    <div id="s5_maincolumn_bottom_left"></div>
                                    <div id="s5_maincolumn_bottom_right"></div>
                                </div>
                            </div>	
                            
                            
                        </div>
                        
                        <div style="float:left;height:19px;width:100%;"></div>
                        
                        <div id="s5_bottomwrap">
                            
                            
                            <div id="s5_user7_100">
                                <div id="s5_user789_left">
                                    <div class="module">
                                        <div>
                                            <div>
                                                <div>
                                               Ninguna informacion aun...</div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                        
                    </div>
                    
                    <div style="clear:both;"></div>
                    
                    
                </div>
                
                
                
                
                
                <div id="s5_maininnerright"></div>		
                
                
            </div>
            
            
            <%@include file="jspf/afooter.jspf"%>
        </div>
        
    </body>
</html>
